package me.weijing.common.model;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;

public class UserEvent implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    @DatabaseField(generatedId = true)
    private int id;
    @DatabaseField
    private long eid;// 事件ID
    @DatabaseField
    private long pid;// 警察用户ID
    @DatabaseField
    private long uid;// 用户ID
    @DatabaseField
    private String lastChat;// 最后通讯内容
    @DatabaseField
    private long helpTime;// 求助时间
    @DatabaseField
    private long needServiceFeedbackTime;
    @DatabaseField
    private Status status;// 事件状态
    @DatabaseField(canBeNull = true, foreign = true)
    private Police police;

    @DatabaseField(canBeNull = true, foreign = true)
    private UserData user;

    public long getEid() {
        return eid;
    }

    public void setEid(long eid) {
        this.eid = eid;
    }

    public long getPid() {
        return pid;
    }

    public void setPid(long pid) {
        this.pid = pid;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public String getLastChat() {
        return lastChat;
    }

    public void setLastChat(String lastChat) {
        this.lastChat = lastChat;
    }

    public long getHelpTime() {
        return helpTime;
    }

    public void setHelpTime(long helpTime) {
        this.helpTime = helpTime;
    }

    public long getNeedServiceFeedbackTime() {
        return needServiceFeedbackTime;
    }

    public void setNeedServiceFeedbackTime(long needServiceFeedbackTime) {
        this.needServiceFeedbackTime = needServiceFeedbackTime;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Police getPolice() {
        return police;
    }

    public void setPolice(Police police) {
        this.police = police;
    }

    public UserData getUser() {
        return user;
    }

    public void setUser(UserData user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "UserEvent [id=" + id + ", eid=" + eid + ", pid=" + pid + ", uid=" + uid + ", lastChat=" + lastChat + ", helpTime=" + helpTime
                + ", needServiceFeedbackTime=" + needServiceFeedbackTime + ", status=" + status + ", police=" + police + ", user=" + user + "]";
    }
}
